package ar.edu.itba.pod.Legajo47342.communication.payload;

import ar.edu.itba.pod.simul.communication.payload.ResourceRequestPayload;
import ar.edu.itba.pod.simul.market.Resource;

public class ResourceRequestPayloadImpl implements ResourceRequestPayload {

	private static final long serialVersionUID = 1L;
	private Resource res;
	private int amount;
	
	public ResourceRequestPayloadImpl(Resource res, int amount) {
		super();
		this.res = res;
		this.amount = amount;
	}

	@Override
	public Resource getResource() {
		return res;
	}

	@Override
	public int getAmountRequested() {
		return amount;
	}

}
